package com.tedu.springdemo.day01;

import java.io.Serializable;

/**
 *
 * @author zx
 * 创建person对象  实体类【具体的类】
 * 属性
 * 方法
 * 构造器
 */
public class Person implements Serializable {
    private String name;
    private int age;

    public void say(){
        System.out.println("说");
    }
    public void eat(){
        System.out.println("吃");
    }



    public Person() {

    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }



}
